package com.tentact.service;

import com.tentact.dao.Admindao;
import com.tentact.vo.Employee;

public class AdminService {
    Admindao dao = new Admindao();

    //登录功能 查询用户名和密码
    public Employee selectByEmployees(Employee employee) {
        return dao.selectByEmployees(employee);
    }

    //修改用户名和密码
    public int updateByEmployees(String newuserpwd, String username, String userpwd) {
        return dao.updateByEmployees(newuserpwd, username, userpwd);
    }

    //通过用户名查询密码
    public Employee selectByEmployeesUsername(String username) {
        return selectByEmployeesUsername(username);
    }
}
